﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace System {
    /*
      "openId": "OPENID",
      "nickName": "NICKNAME",
      "gender": GENDER,
      "city": "CITY",
      "province": "PROVINCE",
      "country": "COUNTRY",
      "avatarUrl": "AVATARURL",
      "unionId": "UNIONID",
      "watermark":
      {
          "appid":"APPID",
          "timestamp":TIMESTAMP
      }
      */
    /// <summary>
    /// 解码后的用户信息
    /// </summary>
    [Serializable]
    public class DecodedUserInfo:DecodeEntityBase {
        public string openId { get; set; }
        public string nickName { get; set; }
        public int gender { get; set; }
        public string city { get; set; }
        public string province { get; set; }
        public string country { get; set; }
        public string avatarUrl { get; set; }
        public string unionId { get; set; }
    }
    [Serializable]
    public class DecodeEntityBase {
        public Watermark watermark { get; set; }
    }
    /// <summary>
    /// 水印
    /// </summary>
    [Serializable]
    public class Watermark {
        public string appid { get; set; }
        public long timestamp { get; set; }
        public DateTimeOffset DateTimeStamp { get; set; }
    }
}
